package javabasic;

/*
@date：2020.12.15
@author：dushuai
@title：创建学生类，具有学号、姓名、年龄、生日四个成员变量属性，提供无参构造和有参构造访问方法
* */
public class Student {
    //    1.定义学号、姓名、年龄、生日四个成员变量
    private String sid;
    private String name;
    private int age;
    private String birthday;

    //    2.创建无参的构造方法
    public Student() {

    }

    //    3.创建有参的构造方法
    public Student(String sid, String name, int age, String birthday) {
        this.sid = sid;
        this.name = name;
        this.age = age;
        this.birthday = birthday;
    }

    //4.提供四个成员变量对应的set/get访问方法
    public String getSid() {
        return sid;
    }

    public void setSid(String sid) {
        this.sid = sid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }
}
